export const layoutStore = defineStore(
    'layoutStore',
    {
        persist: {
            enabled: true,
            storage: sessionStorage
        },
        state() {
            return {
                // 当前是否打开左边侧边栏菜单
                sidebarOpen: true
            }
        },
        actions: {
            reverseSidebarState() {
                this.sidebarOpen = !this.sidebarOpen
            }
        }
    }
)